<template>
  <a-modal
    :title="title"
    :width="width"
    :visible="visible"
    :footer="null"
    :confirmLoading="confirmLoading"
    @cancel="handleCancel"
    cancelText="关闭">

    <!--<a-card type="inner" title="环境温湿度详情信息">-->
        <detail-list>
          <detail-list-item  term="供应商">{{record.supplierName}}</detail-list-item>
          <detail-list-item term="采集时间">{{record.acqTime}}</detail-list-item>
          <detail-list-item term="原材料库房">{{record.rawMatPlace}}</detail-list-item>
          <detail-list-item term="原材料库房温度">{{record.rawMatTemp}}</detail-list-item>
          <detail-list-item term="原材料库房湿度">{{record.rawMatHum}}</detail-list-item>
          <detail-list-item term="smt表面贴装">{{record.smtPlace}}</detail-list-item>
          <detail-list-item term="smt表面贴装温度">{{record.smTemp}}</detail-list-item>
          <detail-list-item term="smt表面贴装湿度">{{record.smtHum}}</detail-list-item>
          <detail-list-item term="波峰焊">{{record.waveSDolPlace}}</detail-list-item>
          <detail-list-item term="波峰焊温度">{{record.waveSDolTemp}}</detail-list-item>
           <detail-list-item term="波峰焊湿度">{{record.waveSDolHum}}</detail-list-item>
           <detail-list-item term="板卡检测">{{record.boardTestPlace}}</detail-list-item>
           <detail-list-item term="板卡检测温度">{{record.boardTestTemp}}</detail-list-item>
          <detail-list-item term="板卡检测湿度">{{record.boardTestHum}}</detail-list-item>
           <detail-list-item term="板卡库房">{{record.boardHousePlace}}</detail-list-item>
           <detail-list-item term="板卡库房温度">{{record.boardHouseTemp}}</detail-list-item>
           <detail-list-item term="板卡库房湿度">{{record.boardHouseHum}}</detail-list-item>
          <detail-list-item term="抓取时间">{{record.updateTime}}</detail-list-item>
           <detail-list-item term="装置生产">{{record.plantProPlace}}</detail-list-item>
           <detail-list-item term="装置生产温度">{{record.plantProTemp}}</detail-list-item>
           <detail-list-item term="装置生产湿度">{{record.plantProHum}}</detail-list-item>
          <detail-list-item term="抓取状态"><span v-show="record.ioflag == 1">未抓取</span><span v-show="record.ioflag == 0">已抓取</span></detail-list-item>

          <detail-list-item term="工厂">{{record.factory}}</detail-list-item>

        </detail-list>
    <div style="text-align: center">
      <a-button type="primary" @click="handleCancel">关闭</a-button>
    </div>

  </a-modal>
</template>

<script>

  import DetailList from '@/components/tools/DetailList'
  const DetailListItem = DetailList.Item

  export default {
    name: "ZxjEip2chjwsdModal",
    components: {
      DetailList,
      DetailListItem
    },
    data () {
      return {
        type:"inner",
        title:"操作",
        width:800,
        visible: false,
        model: {},
        confirmLoading: false,
        url: {

        }
      }
    },
    methods: {
      close () {
        this.$emit('close');
        this.visible = false;
      },
      handleCancel () {
        this.close()
      },
      addModal (record) {
        this.record=record;
        this.visible = true;
      }
    }
  }
</script>